package com.kedacom.testlego.model.net

import com.kedacom.testlego.model.bean.ApiRequestBody
import com.kedacom.testlego.model.bean.HttpBaseResult
import com.kedacom.testlego.model.bean.ResultInfo
import retrofit2.Call
import retrofit2.http.*

interface HttpServiceApi {
    @GET("hello/{world}")
    fun listRepos(@Path("world") world: String): Call<HttpBaseResult<String?>>


    /**
     * 根据身份证号核验
     *
     * @param requestBody
     * @return
     */
    @POST("ga-person-verification/personverification-server/person/id")
    fun verifyByIdCardNo(@Body requestBody: ApiRequestBody): Call<HttpBaseResult<Any>>

    /**
     * 根据身份证号核验
     *
     * @param requestBody
     * @return
     */
    @POST("http://172.168.2.33/ga-person-2/personVerification/person")
    fun verifyByIdCardNo2(@Body requestBody: ApiRequestBody): Call<HttpBaseResult<Any>>

    @POST("material-collection-backend/auth/wap-department-tree")
    fun getPerson(@Query("departmentId") departmentId: String): Call<HttpBaseResult<ResultInfo>>
}
